package com.schoolcloud.serve.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 招领表
 * @TableName found_items
 */
@TableName(value ="found_items")
@Data
public class FoundItems implements Serializable {
    /**
     * 招领ID
     */
    @TableId(type = IdType.AUTO)
    private Integer foundItemId;
    /**
     *分类编号
     */
    private Integer categoryId;
    /**
     * 发布者ID
     */
    private Integer userId;

    /**
     *  物品名称
     */
    private String itemName;

    /**
     * 物品描述
     */
    private String description;

    /**
     * 拾获地点
     */
    private String location;

    /**
     * 拾获时间
     */
    private LocalDateTime foundTime;

    /**
     * 物品图片URL
     */
    private String defaultPicture;

    /**
     *  物品状态（未认领/已认领）
     */
    private Integer status;

    private Integer schoolId;

    /**
     * 发布时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     *标题
     */
    private String title;

    private String objectStatus;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
